package com.changhong.framework.sdfs.namenode.server.directory;

import java.util.LinkedList;
import java.util.List;

/**
 * 文件目录
 * @author summer
 */
public class DataNodeDirectory implements TreeNode{

    private String path;
    private List<TreeNode> children;

    public DataNodeDirectory(String path) {
        this.path = path;
        this.children = new LinkedList<TreeNode>();
    }

    public void addChild(TreeNode inode) {
        this.children.add(inode);
    }

    public String getPath() {
        return path;
    }
    public void setPath(String path) {
        this.path = path;
    }
    public List<TreeNode> getChildren() {
        return children;
    }
    public void setChildren(List<TreeNode> children) {
        this.children = children;
    }
}
